package com.cos.shop.services.impl;

import com.cos.shop.dao.TypeDao;
import com.cos.shop.dao.impl.TypeDaoImpl;
import com.cos.shop.entity.Type;
import com.cos.shop.services.TypeServices;

import java.util.List;

/**
 * @author: COS
 * @time: 2022/2/24 9:00
 * @description:
 */
public class TypeServicesImpl implements TypeServices {
    private TypeDao td = new TypeDaoImpl();

    @Override
    public List<Type> getAll() {
        try {
            return td.getAll();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
